<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="/static/layui/css/layui.css"/>
    <!-- 引入 layui.js -->
    <script src="/static/layui/layui.js"></script>
</head>
<body>
<table class="Layui-hide" id="test"></table>
<script>
    layui.use(function () {
        let form = layui.form;
        let layer = layui.layer;
        let table = layui.table;
        table.render({
            elem: '#test'
            ,url:'/index/member/getList/'
            ,cellMinWidth: 80
            ,cols: [[
                {field:'circle_id', width:80, title: 'ID', sort: true}
                ,{field:'member_id', width:80, title: '用户ID'}
                ,{field:'member_nickname', width:120, title: '用户昵称'}
                ,{field:'member_avatar', width:80, title: '用户头像'}
                ,{field:'circle_content', width:240, title: '内容'}
                ,{field:'like_number', width:120, title: '点赞数量'}
                ,{field:'commit_number',width:120, title: '评论数量'}
                ,{field:'add_time', width:120, title: '添加时间'}
            ]]
        });
    });
</script>
</body>
</html>
